package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    int insert(Bed bed);

    int deleteById(Long id);

    Bed selectById(Long id);

    int updateBed(Bed bed);


    int countByBedNumber(String bedNumber);
}

